package gcu.module.property_money.dao.mapper;

import gcu.module.property_money.daomain.PropertyMoney;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by haol on 2016/9/25.
 */
@Repository
public interface MoneyMapper {

      /*增加申请表*/
      void addMoney(@Param("money")PropertyMoney money);

      /*更新申请表*/
      void updateMoney(@Param("money")PropertyMoney money);
      /*更新申请表*/
      void deleteMoneyByOwnerId(@Param("id")int id);

      /*通过id查看申请表*/
      PropertyMoney queryMoneyById(@Param("id")int id);

      PropertyMoney queryMoneyByOwnerId(@Param("ownerId")int ownerId);

      /*分页查找申请表*/
      List<PropertyMoney> query(@Param("money")PropertyMoney money, @Param("skip")int skip, @Param("size")int size);

      /*按需统计全部*/
      long count(@Param("money")PropertyMoney money);

      void freshenMoney_isIn(@Param("dateNow")String dateNow );

      void freshenMoney_isNot(@Param("dateNow")String dateNow );
}
